# -*- coding:UTF-8 -*-
'''
Created on 2012-7-5
try catch
@author: Administrator
'''
import time

try:
    f = file('poem.txt')
    while True:
        line = f.readline()
        if len(line) == 0:
            break
        time.sleep(2*1000)
        print line,
finally:
    f.close()
    print 'Cleaning up ... closed the file'
